package InnerClass;

/**
 * @description:
 * @Author yyp
 * @time
 */
public class InnerClassExercise02 {
    public InnerClassExercise02(){
        Inner i1 = new Inner();
        i1.a = 10;
        System.out.println(i1);
        Inner i2 = new Inner();
        System.out.println(i2);
        System.out.println(i2.a);
    }
    class Inner{
        int a = 5;
    }

    public static void main(String[] args) {
        InnerClassExercise02 i = new InnerClassExercise02();
        Inner r = i.new Inner();
        System.out.println(r.a);
    }
}
